classdef polykernel < kernel
    properties
        degree;
    end
    methods
        function obj = polykernel(degree)
            obj.degree = degree;
        end
        function res = dot(obj,x1,x2)
            res = (x1*x2').^obj.degree;
        end
    end
end